package com.westa.smallshop.goodsdetail;

import com.westa.smallshop.common.BaseDetailView;
import com.westa.smallshop.common.BasePresenter;
import com.westa.smallshop.data.GoodsItem;

/**
 * Created by cy123 on 2016/9/14.
 */
interface GoodsDetailContract {
    interface View extends BaseDetailView<Presenter> {

        void showGoodsInfo(GoodsItem goodsItem);

        void showAddToCartSuccessful();

        void showAddToCartFailed();

    }

    interface Presenter extends BasePresenter {

        void requestCard();

        void addGoodsToCart(int goodsId);

    }
}
